﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SPlacardChallengeResultToGate extends IMessageBase
    {
        public var result:int;
        public var time:int;
        public var placardConfigId:int;
        public var id:SEntityId;
        public const _type:int = 15266;
        public static var _regist:SPlacardChallengeResultToGate = new SPlacardChallengeResultToGate(true);

        public function SPlacardChallengeResultToGate(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SPlacardChallengeResultToGate();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.result);
            param1.writeInt(this.time);
            param1.writeInt(this.placardConfigId);
            this.id.__write(param1);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.result = param1.readInt();
            this.time = param1.readInt();
            this.placardConfigId = param1.readInt();
            this.id = new SEntityId();
            this.id.__read(param1);
            return;
        }// end function

    }
}
